<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
    <head>
    <meta charset="UTF-8">
        <style>
            .input-mall {
                border: 1px #b1b1b1 solid;
                width: 80px;
                line-height: 20px;
                padding: 1px 5px;
                min-width: 80px;
                color: #333;
            }
        </style>
    </head>
    <jsp:include page="/WEB-INF/jsp/header.jsp"/>
<body>
<div class="body-main">
    <form id="flowCreate" action="">
        <table class="add-table form-table">
            <tr>
                <input type="hidden" value="${id}" name="id">
            </tr>
            <tr>
                <th><span class="required">匹配状态：</span></th>
                <td>
                    <div class="layui-input-inline">
                        <select name="talentStatus" id="talentStatus" class="select-style">
                            <c:forEach var="cs" items="${talentStatus}">
                                <option value="${cs.code}" <c:if test="${cs.code == state}"> selected</c:if>>${cs.name}</option>
                            </c:forEach>
                        </select>
                    </div>
                </td>
            </tr>
            <tr id="match" style="display: none">
                <th><span class="required">匹配企业：</span></th>
                <td>
                    <div class="layui-input-inline">
                        <select name="matchCompanyId" id="matchCompanyId" class="select-style">
                            <option value="">请选择</option>
                            <c:forEach var="c" items="${com}">
                                <option value="${c.id}">${c.companyName}<c:if test="${c.position !=''}">（${c.position}）</c:if></option>
                            </c:forEach>
                        </select>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript"
        src="${basePath}/static/js/zzsc/common/dgg.verify.js?v=${version}"></script>
<script src="${rootUrl}/static/js/zzsc/common/files/annex.js?v=${version}" type="text/javascript" charset="utf-8"></script>
<script>
    $(function(){
       $("#talentStatus").change(function(){
           var state= $(this).val();
           if(state == "TALENT_STATUS_03"){
               $("#match").toggle()
           }else{
               $("#match").css("display","none");
           }
       });
        $("#matchCompanyId").select2({
            placeholder: "请选择",
            allowClear: true,
            language: "zh-CN"
        });
    });
</script>
</body>
</html>
